package evote;

import evote.Enums.EdgesType;

public class Edge {
	private static int[] Primes = {2 , 3 ,5 , 7 ,11 ,13 , 17 ,19 ,23 , 	29 , 31 ,37 ,41 ,43 ,47 ,53};
	
	private int sourceID;
	private int targetID;
	private int ID;
	private EdgesType type;
	
	
	/* We need to store all the data, 
	numOfVertex is for % calculation
	*/
	Edge(Vertex source, Vertex target, int numOfVertex){ //What is numOfvertex? is it the num of vertices in the graph?
		sourceID = source.ID();
		targetID = target.ID();
		ComputeID(numOfVertex);
		
	}
	
	int GetID(){
		return ID;
	}
	private void ComputeID(int modulo){
		ID = Primes[( sourceID*modulo) + targetID];
	}



}

